# -*- coding: utf-8 -*-
import json




def get_names(filename):
    f = open(filename, 'r', encoding='utf-8')
    names = json.loads(f.read())  # loads: Convert a string to a dictionary
    # for x in movie_names:
    #     print(x)
    print(len(names))
    f.close()
    return names


body = get_names("./jw/body.txt")
check = get_names("./jw/check.txt")
disease = get_names("./jw/disease.txt")
symbol = get_names("./jw/symbol.txt")

if __name__ == "__main__":
    # write_movie_names("./movies.txt")
    # get_movie_names("./movies.txt")
    #write_movie_names1("./movies.json")
    disease = get_names ("disease.txt")
    print(disease)
    #write_person_names("./person_names.json")
    # get_person_names("./person_names.json")
    pass
